home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_tem_surfanim2.cog < prev    next >
Text File  |  1999-11-15  |  910b  |  49 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEM_SurfAnim2.cog
  4. #
  5. # Animates up to 4 surfaces at the same frame rate
  6. #
  7. # [TRM]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14.     message        startup        
  15.  
  16.     surface        surf0
  17.     surface        surf1
  18.     surface        surf2
  19.     surface        surf3
  20.     surface        surf4
  21.     surface        surf5
  22.     surface        surf6
  23.     surface        surf7
  24.     
  25.     float        fps=15.0        
  26.     
  27.     int            i                local
  28.     int         numSurfs=8      local
  29.     
  30. end
  31.  
  32. # ========================================================================================
  33.  
  34. code
  35.  
  36. startup:
  37.  
  38.     for (i = 0; i <= numSurfs; i = i + 1)
  39.         {
  40.             if(surf0[i] >= 0) SurfaceAnim(surf0[i], fps, 0x1);
  41.         }
  42.         
  43.     return;
  44.  
  45. # ========================================================================================
  46.  
  47. end
  48.  
  49.